<template>
    <el-container>
        <el-header style="position: fixed">
            <div class="topmenu">
                <router-link to="/Workbench/index">宁波市安责险风险防控服务中心</router-link>
                <el-menu style="margin-left: 50px" class="el-menu-demo" mode="horizontal" router
                    background-color="rgb(62, 111, 245)" text-color="#fff" active-text-color="#ffd04b"
                    :default-active="activeIndex">
                    <el-menu-item index="/Workbench/index/0">工作台</el-menu-item>
                    <el-menu-item index="/Service/Hidden_danger/0">服务成效</el-menu-item>
                    <el-menu-item index="/Settlement">结算中心</el-menu-item>
                    <el-menu-item index="/Evaluation">考评中心</el-menu-item>
                    <el-menu-item index="/Knowledge">知识库</el-menu-item>
                </el-menu>
                <div class="line"></div>
            </div>
        </el-header>
        <el-main style="display: none"></el-main>
        <router-view></router-view>
    </el-container>
</template>

<script>
export default {
    data() {
        return {
            activeIndex: "/Workbench/index/0",
        }
    },
    created() { //页面渲染之前执行
    },
    mounted() {
    },
    watch: {  //监听

    },
    methods: {
    }
}
</script>

<style >
.el-menu-item {
    font-size: 18px;
    font-weight: 500;
}

.el-menu-item:hover {
    background-color: rgba(3, 19, 33, 0.123) !important;
}

.el-header {
    width: 100%;
    background: rgb(62, 111, 245);
}

.topmenu {
    display: flex;
}

.el-header a {
    width: 370px;
    color: #fff;
    text-decoration: none;
    font-size: 23px;
    font-weight: 700;
    line-height: 54px;
}
</style>